# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

import time
from collections import OrderedDict

import odoo.addons.decimal_precision as dp
from odoo import api, fields, models
from datetime import datetime, timedelta
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT
from odoo.tools import float_compare, float_is_zero
from odoo.tools.translate import _
from odoo import tools, SUPERUSER_ID
from odoo.exceptions import UserError, AccessError
from odoo.exceptions import ValidationError
import calendar as cal


class resource_calendar(models.Model):
    _inherit = ['resource.calendar']

    inout_close = fields.Boolean(u'已关帐', default=False)
    previous_month_id = fields.Many2one("resource.calendar", string=u"上个月")
    next_month_id = fields.Many2one("resource.calendar", string=u"下个月")
